package com.example.actordemo1.dispatcher;

import akka.actor.AbstractActor;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.example.actordemo1.becom.BecomActor;

public class DispatcherActor extends AbstractActor {
    @Override
    public Receive createReceive() {
        return receiveBuilder().matchAny(o->{
            System.out.println(o);
        }).build();
    }

    public static void main(String[] args) {
        ActorSystem actorSystem = ActorSystem.create("sys");
        ActorRef actorRef = actorSystem.actorOf(Props.create(DispatcherActor.class)
                .withDispatcher("my-forkjoin-dispatcher"), "dispatcherActor");
    }
}
